package com.mall.product.service;

import com.mall.common.util.JsonResult;
import com.situ.mall.notification.spi.model.DTO.PriceChangeDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 通知服务Feign客户端
 */
@FeignClient(name = "notification-api", path = "/api/notifications")
public interface NotificationFeignService {

    @PostMapping("/priceChange")
    ResponseEntity<JsonResult<?>> PriceChange(@RequestBody PriceChangeDTO dto);

}

